export class ImageWidgetData {
  type: string
  initW: number
  initH: number
  x: number
  y: number
  width: number
  height: number
  active: boolean
  src: string
  zIndex: number
  borderRaius: number
  alias: string
  config: object

  constructor(config: object = {}) {
    this.type = 'image'
    this.initW = 80
    this.initH = 80
    this.x = 10
    this.y = 10
    this.width = 80
    this.height = 80
    this.src = require('@/assets/editor_images/default.png')
    // this.src = 'http://admin.san-show.com/timg.jpg'
    this.active = true
    this.zIndex = 0
    this.borderRaius = 0
    this.alias = 'proimg1'
    this.config = config
  }
}
